#!/usr/bin/python

import sys
import re

r = re.compile(r'[a-z]+', re.I)
for line in sys.stdin:
  line = line.strip()
  for w in r.findall(line):
    print '%s\t%d' % (w, 1)
